﻿/******************************************************************************
 * Copyright 2020-xxxx xxx Co., Ltd.
 * All right reserved. See COPYRIGHT for detailed Information.
 *
 * @projectName   aaa
 * @file          xchart.h
 * @brief         XChart Class
 *
 * @author        Feng<2859352492@qq.com>
 * @date          2022/03/07 18:36:13
 * @history
 *****************************************************************************/

#ifndef XCHART_H
#define XCHART_H

#include <QObject>
#include "qcustomplot.h"
#include "xnamespace.h"

QT_BEGIN_NAMESPACE

//定义数据类型
typedef QPair<double, QString> XChartData;
typedef QList<XChartData> XChartDataList;
//typedef QCPDataContainer<QCPBarsData> QCPBarsDataContainer;
typedef QList<XChartDataList> XChartDataTable;
typedef QList<QColor> XChartPenList, XChartBrushList;

class XChartPrivate;
class XChart : public QCustomPlot
{
    Q_OBJECT

public:
    explicit XChart(QWidget *parent = nullptr, Qt::WindowFlags f=Qt::WindowFlags());
    ~XChart();




};

QT_END_NAMESPACE

#endif // XCHART_H
